package com.daka.controller;

import com.daka.tools.DateUtil;

import java.util.Date;

/**
 * Created by yangx
 * CreateTime: 2016/10/25 11:56
 */
public class test {
    public static void main(String[] aa){
        String a = "2016-01-02";
        String b = "2016-10-25";
        Date date1 = DateUtil.getDateFormString(b+" 00:00:00");
        System.out.println(date1);

        String date2 = DateUtil.getAfterDate(date1, 11);
        System.out.println(date2);
        System.out.println(date2.substring(0,10));
    }
}
